﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Pinia.Models;

namespace Pinia.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index(CateItemModel model)
        {
            CateItemModel ci = new CateItemModel();
            ci.cateList = new List<CategoryModel>();
            ci.itemList = new List<ItemModel>();
            ItemModel im = new ItemModel();
            im.ItemName = "aaa";
            ci.itemList.Add(im);
            im = new ItemModel();
            im.ItemName = "aaa";
            ci.itemList.Add(im);
            im = new ItemModel();
            im.ItemName = "aaa";
            ci.itemList.Add(im);
            CategoryModel cm = new CategoryModel();
            cm.CateName = "aaa";
            cm.CateId = 1;
            ci.cateList.Add(cm);
            im = new ItemModel();
            cm.CateName = "aaa";
            ci.cateList.Add(cm);
            im = new ItemModel();
            cm.CateName = "aaa";
            ci.cateList.Add(cm);
            return View(ci);
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
